package cn.jbt.api.admin.repository;

import cn.jbt.api.admin.entity.SysUserRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface SysUserRoleRepository extends JpaRepository<SysUserRole, Long> {

    void deleteByRoleIdIn(List<Long> roldIds);

    void deleteByUserId(long userId);

    void deleteByUserIdIn(List<Long> userIds);
}
